package com.jic.order.exception;

import com.jic.order.enums.OrderEnum;

public class OrderException extends RuntimeException {

    private OrderEnum orderEnum;

    private String message;

    public OrderException(OrderEnum orderEnum, String message) {
        super(message);
        this.orderEnum = orderEnum;
        this.message = message;
    }

    public OrderEnum getOrderEnum() {
        return orderEnum;
    }

    public void setOrderEnum(OrderEnum orderEnum) {
        this.orderEnum = orderEnum;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
